package com.say.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.say.bean.domain.User;
import com.say.framework.core.common.service.BaseService;

public interface UserService extends BaseService<User, String> {

    Page<User> findByPage(Map<String, Object> params, Pageable sp) throws Exception;
   
    void updateMoodById(String userId, String mood);

    User getUserByOpenId(String openId);
    
    User getUserByUserName(String userName);
    
    User insertUser(User user);
    
	String getOpenId(String id);
	
	List<User> findFriendsByUserId(String userId);



}
